package com.spring.ext.demos.ext;

import com.spring.ext.demos.web.User;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class MyFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        return new User("1",1);
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
